
class MyCompositeLeaf
  attr_accessor :parent_composite

  # this method is inheritd from Object
  #def visit &block
  #  block.call(self)
  #end

  def children
    []
  end

  def to_s
    self.class.to_s
  end
end